/*
    全局通用样式
*/
/*提示*/
.app-tips{
  font-size: 12px;
  color: $light-font-color;
}

/* app-xxxx 通用内容盒子 */
.app-main-content-box {
  padding: 24px 30px;
  border-radius: 5px;
  background-color: #fff;
}

/* 通用提示tips */
.app-main-tips-box {
  padding: 20px;
  border-radius: 5px;
  color: $dark-font-color;

  .title {
    font-size: 16px;
  }

  li {
    margin-top: 10px;
    padding-left: 20px;
    font-size: 14px;
  }
}

/* 控制多行显示 */
.app-line-one {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  word-break: break-all;
}

.app-line-two {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: -o-ellipsis-lastline;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}
.app-line-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-all;
}

/* 通用左右大标题&按钮组 */
.app-main-top-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;

  .title {
    font-size: 20px;
    color: #303133;
    font-weight: bold;
  }
}

/* 通用详情列表 */
.app-detail-list-box {
  border-left: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
  li {
    display: flex;
    word-break: break-all;
    border-bottom: 1px solid #ebeef5;
    &:hover {
      background-color: #f5f7fa;
    }
  }
  li:first-child {
    border-top: 1px solid #ebeef5;
  }
  .left {
    background-color: #f5f7fa;
  }
  .left,
  .right {
    padding: 12px 20px;
    font-size: 14px;
    color: $dark-font-color;
  }
}

/* 通用条件筛选 覆盖el-collapse */
.app-main-filter-collapse-box {
  .el-collapse {
    border: none !important;
    .el-collapse-item__header {
      height: 40px;
      line-height: 40px;
      border-bottom: none;
    }

    .el-collapse-item__wrap {
      border-bottom: none;
    }

    .el-collapse-item__arrow {
      float: left;
      margin-left: 0;
      line-height: 40px;
    }

    .el-collapse-item__content {
      padding-bottom: 0;
    }
  }
}

/*
* 文本颜色通用
*/
.app-text-color-dark {
  color: $dark-font-color;
}

.app-text-color-light {
  color: $light-font-color;
}

.app-display-i-b {
  display: inline-block;
}


/*在Chrome下移除input[number]的上下箭头*/
.app-input-no-num::-webkit-outer-spin-button,
.app-input-no-num::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none !important;
}

.app-input-no-num input[type="number"]::-webkit-outer-spin-button,
.app-input-no-num input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none !important;
}

/*在firefox下移除input[number]的上下箭头*/
.app-input-no-num {
  -moz-appearance: textfield;
}

.app-input-no-num input[type="number"] {
  -moz-appearance: textfield;
}

@for $i from 1 through 4 {
  .m-#{$i}0 {
    margin: #{$i}0px;
  }
  .mx-#{$i}0 {
    margin-left: #{$i}0px;
    margin-right: #{$i}0px;
  }
  .my-#{$i}0 {
    margin-top: #{$i}0px;
    margin-bottom: #{$i}0px;
  }
  .mr-#{$i}0 {
   margin-right: #{$i}0px;
  }
  .ml-#{$i}0 {
    margin-left: #{$i}0px;
  }
  .mt-#{$i}0 {
    margin-top: #{$i}0px;
  }
  .mb-#{$i}0 {
    margin-bottom: #{$i}0px;
  }
}
@for $i from 12 through 28 {
  .font-#{$i + 2} {
    font-size: #{$i + 2}px;
  }
}
